<?php
/**
 * Created by PhpStorm.
 * User: EZ
 * Date: 2017/5/27
 * Time: 10:24
 */

function C($key='',$val=''){
    static $config=null;
    if($config==null){
        $config = include "config.php";
    }
    if($key && $val){
       $config[$key]=$val;
        return true;
    }
    if($key && $val==''){
        if(isset($config[$key])){
            return $config[$key];
        }
        return false;
    }
    if($key=='' && $val==''){
        return $config;
    }
    return false;
}
